Location: BondGraph Basic @ 9eb28b4e2e47 / BG Tutorial Biochemical Systems / PKPD.cellml

Author:
Soroush Safaei <ssaf006@aucklanduni.ac.nz>
Date:
2018-06-18 16:19:54+12:00
Desc:
adding new figure
Permanent Source URI:
https://models.cellml.org/workspace/43b/rawfile/9eb28b4e2e4712ad3af2e11ad45c9a20be6e3d02/BG Tutorial Biochemical Systems/PKPD.cellml

<?xml version='1.0'?>
<model name="Biochemical1" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <import xlink:href="Units.cellml">
        <units name="per_mol" units_ref="per_mol"/>
        <units name="J_per_mol" units_ref="J_per_mol"/>
        <units name="J_per_mol_K" units_ref="J_per_mol_K"/>
        <units name="mol_per_s" units_ref="mol_per_s"/>
        <units name="per_s" units_ref="per_s"/>
        <units name="g_per_s" units_ref="g_per_s"/>
        <units name="g_per_l" units_ref="g_per_l"/>
        <units name="l_per_s" units_ref="l_per_s"/>
    </import>
    <component name="state">
        <variable name="t" units="second"/>
        <!-- State variables-->
        <variable initial_value="0.001" name="q_A1" units="gram"/>
        <variable initial_value="0.0" name="q_A2" units="gram"/>
        <variable name="q_C" units="g_per_l"/>
        <variable initial_value="100.0" name="q_PCA" units="gram"/>
        <!-- Parameters-->
        <variable initial_value="0.00003722" name="k_CL" units="l_per_s"/>
        <variable initial_value="0.00003333" name="k_a" units="per_s"/>
        <variable initial_value="8.1" name="k_V" units="litre"/>
        <variable name="k" units="per_s"/>
        <variable initial_value="1.0" name="E_max" units="dimensionless"/>
        <variable name="E" units="dimensionless"/>
        <variable initial_value="0.0015" name="C_50" units="g_per_l"/>
        <variable initial_value="0.00001361" name="k_PCA" units="per_s"/>
        <variable name="R_in" units="g_per_s"/>
        <!-- Parameters equations-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>k</ci>
                <apply>
                    <divide/>
                    <ci>k_CL</ci>
                    <ci>k_V</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>R_in</ci>
                <apply>
                    <times/>
                    <cn cellml:units="gram">100</cn>
                    <ci>k_PCA</ci>
                </apply>
            </apply>
            <!-- State equations-->
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_A1</ci>
                </apply>
                <apply>
                    <times/>
                    <apply>
                        <minus/>
                        <ci>k_a</ci>
                    </apply>
                    <ci>q_A1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_A2</ci>
                </apply>
                <apply>
                    <minus/>
                    <apply>
                        <times/>
                        <ci>k_a</ci>
                        <ci>q_A1</ci>
                    </apply>
                    <apply>
                        <times/>
                        <ci>k</ci>
                        <ci>q_A2</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>q_C</ci>
                <apply>
                    <divide/>
                    <ci>q_A2</ci>
                    <ci>k_V</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_PCA</ci>
                </apply>
                <apply>
                    <minus/>
                    <apply>
                        <times/>
                        <ci>R_in</ci>
                        <ci>E</ci>
                    </apply>
                    <apply>
                        <times/>
                        <ci>k_PCA</ci>
                        <ci>q_PCA</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>E</ci>
                <apply>
                    <minus/>
                    <cn cellml:units="dimensionless">1</cn>
                    <apply>
                        <divide/>
                        <apply>
                            <times/>
                            <ci>E_max</ci>
                            <ci>q_C</ci>
                        </apply>
                        <apply>
                            <plus/>
                            <ci>C_50</ci>
                            <ci>q_C</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
</model>